xen/arm: account IO handler for emulated PCI host bridge
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Thu, 9 Dec 2021 07:29:17 +0000 (09:29 +0200)
committerJulien Grall <jgrall@amazon.com>
Wed, 15 Dec 2021 17:39:56 +0000 (17:39 +0000)
commitb88109676376217e11d158de8325eb2234327760
tree59aa368e6fae4b2b67d5a54eed2cab5c6c2e760f
parentcd54f8095e8779b2c276e4a9b2fa1715426d7b35
xen/arm: account IO handler for emulated PCI host bridge

At the moment, we always allocate an extra 16 slots for IO handlers
(see MAX_IO_HANDLER). So while adding an IO trap handler for the emulated
PCI host bridge we are not breaking anything, but we have a latent bug
as the maximum number of IOs may be exceeded.
Fix this by explicitly telling that we have an additional IO handler, so it is
accounted.

Fixes: d59168dc05a5 ("xen/arm: Enable the existing x86 virtual PCI support for ARM")
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Tested-by: Rahul Singh <rahul.singh@arm.com>
xen/arch/arm/vpci.c